package com.kehutong.crm.message.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;
import com.kehutong.common.enums.MessageBusinessEnum;
import com.kehutong.common.enums.TemplateType;

@Table(value="t_message_template_sms", comment="短信模板消息", idType = IDType.TIMESTAMP)
public class MessageTemplateSms extends Entity {

    private static final long serialVersionUID = 2273017951290260773L;

    protected MessageTemplateSms(String id) {
        super(id);
    }

    @Column(comment = "业务模板类型")
    private MessageBusinessEnum businessType;

    @Column(comment = "模板类型")
    private TemplateType templateType;

    @Column(comment = "标签说明", dbType = "TEXT", length = 65535)
    private String tagArray;

    @Column(comment = "模板标题")
    private String title;

    @Column(comment = "内容模板", length = 256)
    private String content;

    @Column(comment = "腾讯内容模板", length = 256)
    private String tencentContent;

    @Column(comment = "短信模板ID")
    private int tencentTemplateId;

    @Column(comment = "模板状态:申请签名状态。其中：0：表示审核通过。1：表示审核中。-1：表示审核未通过或审核失败。")
    private int statusCode;

    @Column(comment = "是否国际/港澳台短信.0：表示国内短信,1：表示国际/港澳台短信")
    private int international;

    @Column(comment = "短信类型，0表示普通短信, 1表示营销短信")
    private int smsType;

    @Column(comment = "备注", length = 256)
    private String remark;

    @Column(comment = "审核回复", length = 256)
    private String reviewReply;

    @Column(comment = "该模板是否有变量")
    private boolean variables;

    @Column(comment = "状态：0初始化，1启用，2禁用")
    private int status;

    // @Column(comment = "业务状态")
    // private MessageBusinessStateEnum businessStateEnum;

    @Column(comment="逻辑删除")
    private boolean deleted;

    public MessageBusinessEnum getBusinessType() {
        return businessType;
    }

    public void setBusinessType(MessageBusinessEnum businessType) {
        this.businessType = businessType;
    }

    public TemplateType getTemplateType() {
        return templateType;
    }

    public void setTemplateType(TemplateType templateType) {
        this.templateType = templateType;
    }

    public String getTagArray() {
        return tagArray;
    }

    public void setTagArray(String tagArray) {
        this.tagArray = tagArray;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTencentContent() {
        return tencentContent;
    }

    public void setTencentContent(String tencentContent) {
        this.tencentContent = tencentContent;
    }

    public int getTencentTemplateId() {
        return tencentTemplateId;
    }

    public void setTencentTemplateId(int tencentTemplateId) {
        this.tencentTemplateId = tencentTemplateId;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public int getInternational() {
        return international;
    }

    public void setInternational(int international) {
        this.international = international;
    }

    public int getSmsType() {
        return smsType;
    }

    public void setSmsType(int smsType) {
        this.smsType = smsType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getReviewReply() {
        return reviewReply;
    }

    public void setReviewReply(String reviewReply) {
        this.reviewReply = reviewReply;
    }

    public boolean isVariables() {
        return variables;
    }

    public void setVariables(boolean variables) {
        this.variables = variables;
    }

    // public MessageBusinessStateEnum getBusinessStateEnum() {
    //     return businessStateEnum;
    // }
    //
    // public void setBusinessStateEnum(MessageBusinessStateEnum businessStateEnum) {
    //     this.businessStateEnum = businessStateEnum;
    // }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
